package com.goldcup.mapper;

import com.goldcup.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserMapper extends JpaRepository<User,Long> {
  /*  int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);*/

    User findByNameAndPassword(String name,String pwd);

    User findById(int id);

    User findByName(String name);
}